package com.hawk.eye.common.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @className: TemplateNode
 * @description:
 * @author: salad
 * @date: 2023/10/1
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TemplateNode {

    @NotBlank(message = "字段名不能为空")
    @Size(max = 15, message = "字段名长度必须在15以内")
    private String fieldKey;

    @NotBlank(message = "字段值不能为空")
    @Size(max = 35, message = "字段值长度必须在35以内")
    private String fieldValue;

    @NotEmpty(message = "字段值类型不能为空")
    private String fieldType;

    private Boolean alarmOut;

    @NotEmpty(message = "排序不能为空")
    private Integer sort;

}
